﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel;
using System.Data.Linq.Mapping;

namespace SST.Phone.Model.VO
{
    [Table]
    public class SettingItem : BaseData
    {
        public enum SETTING { USERNAME, PASSWORD, CHAT_REFRESH, SHOW_TRAY };

        private string _Name;
        /// <summary>
        /// Name
        /// </summary>
        [Column(IsPrimaryKey = true, IsDbGenerated = false, CanBeNull = false, AutoSync = AutoSync.OnInsert)]
        public string Name
        {
            get { return _Name; }
            set
            {
                NotifyPropertyChanging("Name");
                _Name = value;
                NotifyPropertyChanged("Name");
            }
        }

        private string _Value;
        /// <summary>
        /// Value
        /// </summary>
        [Column]
        public string Value
        {
            get { return _Value; }
            set
            {
                NotifyPropertyChanging("Value");
                _Value = value;
                NotifyPropertyChanged("Value");
            }
        }
    }
}
